package com.wuyoucar.service.impl;

import com.wuyoucar.entity.TOrder;
import com.wuyoucar.mapper.TOrderMapper;
import com.wuyoucar.service.ITOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class TOrderServiceImpl implements ITOrderService {
    @Autowired
    private TOrderMapper tOrderMapper;

    @Override
    public TOrder findOrderByUserId(String ordernumber) {
        return tOrderMapper.selectOrderByOrderId(ordernumber);
    }

    @Override
    public int modifyCheckState(Map<String,String> map) {
        return tOrderMapper.updateOrderCheckState(map);
    }
}
